<template>
   <el-pagination
        background
        layout="total, prev, pager, next, jumper"
        @current-change="changePage"
        :page-size="size"
        :current-page.sync="pageNum"
        :hide-on-single-page=true
        :total="total">{{total}}
    </el-pagination> 
</template>
<script>
import { abc } from "../../../js/abc.js"; 
import {potUrl} from '../../../js/config_url.js';
    export default {
        props:['total','url','form',"OBJECTE"],

        data(){
            return {
                pageNum:'',
                size:20,
            }
        },
        methods:{
            changePage(val){
            //翻页
            var that = this;
                that.pageNum = val;
                OBJECTE.form.page = val;
                abc.getList(OBJECTE,url,form);
            },
        }
    }
</script>